package com.ruoyi.system.domain.tree;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.tree.CommonTree;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Objects;

/**
 * 描述
 * 作者 ZhangPing
 * 创建时间 2023/10/7 17:13
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
public class AppCompanyTree extends CommonTree<AppCompanyTree> {

    private String label;
    private String text;

    public AppCompanyTree(SysDept dept){
        super(dept);
        this.label = dept.getDeptName();
        this.text = dept.getDeptName();
    }
}
